package com.test.p13bridge.example01;

public class Computer2 {

    protected Brand brand;

    public Computer2(Brand brand) {
        this.brand = brand;
    }

    public void sale(){
        brand.sale();
    }
}


class Desktop2 extends Computer2{

    public Desktop2(Brand brand) {
        super(brand);
    }

}

class Laptop2 extends Computer2{

    public Laptop2(Brand brand) {
        super(brand);
    }

}

class Pad2 extends Computer2{

    public Pad2(Brand brand) {
        super(brand);
    }


}